<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/init_context.jsp"%>
<div class="tabscon" id="gopayTab">
	<div class="titleBox-1">
		<h5>您正在使用国付宝帐户支付</h5>
	</div>
	<form action="${ctx }/sec/pay/gopayChannel.shtml" id="gopayConfirmForm" name="gopayConfirmForm" method="post">
	<table class="table-tml">
		<tbody>
			<tr>
				<th width="340px">客户名称：</th>
				<td>${custName }</td>
			</tr>
			<tr>
				<th width="340px">选择账户：</th>
				<td>
					<select id="gopayAcctId" name="gopayAcctId" onchange="getAvaAmtByAcctId(this);">
						<c:forEach items="${acctIds}" var="acct" >
							<option value="${acct.acctId }">${acct.acctId } | ${acct.name }</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<th width="340px">可用余额：</th>
				<td><span class="red" id="avaAmtSpan">${avaAmt }元</span></td>
			</tr>
			<tr id="displayPayPwdTr">
				<th width="340px">支付密码：</th>
				<td><div id="userPayPwdDiv"></div></td>
			</tr>
			
			       
                		<!-- 加上动态口令卡 ，1表示有权限显示-->
					<c:if test="${(haveDcAuth eq '1')}">
					<tr>
					<th width="340px">动态口令：</th>
				    <td >
					<input type="text" name="dcpass" id="dcpass" style="width:215px;height:20px"/>
				    </td>
			     </tr>
			     <tr>
			     <td colspan="2">
				<!-- 提示信息 -->
					<c:if test="${not empty dcErrMesg}">
				 <div style="margin-left:220px;margin-right:220px;color: red">提示:${dcErrMesg}</div>	
			     </c:if>
			     <td>
			     </tr>
			     </c:if>
			
			<tr>
				<td height="100px" align="center" colspan="2"><button class="btn-1" type="button" id="gopaySubmitBtn">确认支付</button></td>
			</tr>
		</tbody>
	</table>
		<input type="hidden" name="orderId" id="orderId" value="<%=request.getParameter("orderId")%>"/>
		<input type="hidden" name="formhash" id="formhash" value="${formhash }"/>
        <input type="hidden" name="orderKey" id="orderKey" value="<%=request.getParameter("orderKey")%>"/>
	</form>
</div>
